package cn.tedu.oa.common.shiro;

import java.util.HashMap;
import java.util.Map;

public class FilterChainDefinitionMapFactory {
	
	public Map<String,String> getFilterChainDefinitionMap(){
		Map<String,String> map = new HashMap<>();
        map.put("/lib/**","anon");//anon表示允许匿名访问
        map.put("/login","anon");
        map.put("/logout ","logout");
        map.put("/doLogin","anon");
        map.put("/**", "authc");//必须授权才能访问
		return map;
	}
}
